import { Link } from '@brillout/docpress'

import { UiFrameworkExtension, ImplementedBy } from '../../components'

Default value: `false`. (Or `true` if using a <Link href="/extensions">Vike extension</Link> that requires streaming.)  
Requires: <Link href="/ssr">`ssr: true`</Link>.
<ImplementedBy>the `stream` setting</ImplementedBy>

Setting to disable/enable <Link href="/streaming">HTML Streaming</Link>.

Disable for all your pages:

```js
// /pages/+config.js

// This config applies to all pages (/pages/**).
export default {
  stream: false
}
```

Disable only for some pages:

```js
// /pages/admin/+config.js

/* This config applies only to admin pages (/pages/admin/**) such as:
   FILESYSTEM                            URL
   /pages/admin/+Page.js                 /admin
   /pages/admin/user/@id/+Page.js        /admin/user/@id
   /pages/admin/product/@id/+Page.js     /admin/product/@id
*/
export default {
  stream: false
}
```

For an improved file and config organization, you can consider using a <Link href="/file-structure#domain-driven">domain-driven file structure</Link>.


## Without `vike-{react,vue,solid}`

In case you don't use a <UiFrameworkExtension />, you can implement the `stream` setting yourself by using <Link href="/meta">meta</Link>.

Examples:

 - [`vike-react` source code](https://github.com/vikejs/vike-react/blob/main/packages/vike-react)
 - [`vike-vue` source code](https://github.com/vikejs/vike-vue/blob/main/packages/vike-vue)
 - [`vike-solid` source code](https://github.com/vikejs/vike-solid/blob/main/vike-solid)


## See also

- <Link href="/streaming" />
- <Link href="/ssr" />
